package com.seven.good.dao;

import com.seven.good.pojo.GoodStatus;
import org.apache.ibatis.annotations.Select;

public interface GoodStatusMapper {
    int deleteByPrimaryKey(Integer gsId);

    int insert(GoodStatus record);

    int insertSelective(GoodStatus record);

    GoodStatus selectByPrimaryKey(Integer gsId);

    int updateByPrimaryKeySelective(GoodStatus record);

    int updateByPrimaryKey(GoodStatus record);

    //根据商品状态编号查询商品具体状态
    @Select("select gs_type from good_status where gs_no = #{gid} and flag = 0")
    String selectGoodStateType(Integer gid);
}